package com.threadExample;

/**
 * Created by yijy on 2017/7/26.
 */
public class SyncTest {
    public static void main(String[] args) {
        Stack s = new Stack("s1");
        Producer p=new Producer(s,"pro");
        Consumer consumer = new Consumer(s,"consumer");
        Consumer consumer1 = new Consumer(s,"consumer1");

        Stack stack = new Stack("stack");
        Producer producer=new Producer(stack,"pro");
        Consumer consumer2 = new Consumer(stack,"consumer2");
        Consumer consumer3 = new Consumer(stack,"consumer3");
    }
}
